<template>
  <div class="app-container">
    <div  class="empty-info">
      <div
        v-loading="true"
        element-loading-text="移动端信息加载中"
        element-loading-spinner="el-icon-loading"
        element-loading-background="rgba(0, 0, 0, 0.8)"
      ></div>
    </div>
  </div>
</template>

<script>
import { mobileData } from '@/views/youshuda/base/mobile/util/mobileData'

export default {
  name: 'MobilePageVisit',
  data() {
    return {

    }
  },
  created() {
    let appKey = mobileData['appKey'];
    this.initApp(appKey)
  },
  methods:{
    initApp(appKey){
      this.request({
        url: '/generator/FromBuildPage/getAppHomePageByAppKey?appKey='+appKey,
        method: 'get'
      }).then(res => {
        if(res.code == 200){
          this.$router.push("/ysdAppRender/mobilePageRender/"+res.data)
        }else{
          this.$message.error(res.msg);
        }
      });
    }
  }
}
</script>

<style scoped>

.empty-info {
  height: calc(100%);
  padding-top: 50%;
}

</style>
